package com.ruoyi.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "asr-config")
public class IflytekAsrConfig implements InitializingBean {

    private Boolean ifSaveResult; // 保存结果，暂无
    private String aueParam; // raw , alaw, ulaw
    private Integer resample; // 转成16k16bit音频
    private Integer inputRecord; // 1 音频文件识别 2 录音机识别
    private String ssbparam; // 识别参数
    private Boolean bOnline; // 在线离线控制,false则为离线识别
    private String audiopath; // 音频路径


    public Boolean getIfSaveResult() {
        return ifSaveResult;
    }

    public void setIfSaveResult(Boolean ifSaveResult) {
        this.ifSaveResult = ifSaveResult;
    }

    public String getAueParam() {
        return aueParam;
    }

    public void setAueParam(String aueParam) {
        this.aueParam = aueParam;
    }

    public Integer getResample() {
        return resample;
    }

    public void setResample(Integer resample) {
        this.resample = resample;
    }

    public Integer getInputRecord() {
        return inputRecord;
    }

    public void setInputRecord(Integer inputRecord) {
        this.inputRecord = inputRecord;
    }

    public String getSsbparam() {
        return ssbparam;
    }

    public void setSsbparam(String ssbparam) {
        this.ssbparam = ssbparam;
    }

    public Boolean getBOnline() {
        return bOnline;
    }

    public void setBOnline(Boolean bOnline) {
        this.bOnline = bOnline;
    }

    public String getAudiopath() {
        return audiopath;
    }

    public void setAudiopath(String audiopath) {
        this.audiopath = audiopath;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println();
    }
}
